<table width="200" height="5" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="1%" background="<?php echo SITE_URL?>img/made/made_r3_c4.jpg"><img src="<?php echo SITE_URL?><?php echo SITE_URL?>img/made/made_r3_c2.jpg" width="9" height="57" /></td>
    <td width="45%" background="<?php echo SITE_URL?>img/made/made_r3_c4.jpg"><a href="#" class="tit">HOME</a>&nbsp;&nbsp;&nbsp;<a href="#"class="tit">相册</a>&nbsp;&nbsp;&nbsp; <DIV id=menu01 style="POSITION: absolute">
        <DIV id=sub onmouseout="MM_showHideLayers('sub','','hide')" 
            onmouseover="MM_showHideLayers('sub','','show')" 
            style="HEIGHT: 30px; LEFT: -7px; POSITION: absolute; TOP: 12px; VISIBILITY: hidden; WIDTH: 150px; Z-INDEX: 11">
          <TABLE bgColor=#3c8830 border=0 cellPadding=1 cellSpacing=1 
            width=228>
              <TBODY>
              <TR bgColor=#a5db97>
                <TD align=left>
                  <TABLE border=0 cellPadding=4 cellSpacing=1 class=46C92F 
                  width=500>
                    <COLGROUP span=3>
                    <COL width="33%">
                    <COL width="33%">
                    <COL width="34%"></COLGROUP>
                    <TBODY>
                    <TR bgColor=#fafef4>
    <TD class=word >美食名&nbsp;&nbsp;美食名&nbsp;&nbsp;美食名</td></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV></DIV><A 
            class=tit href="" 
            onmouseout="MM_showHideLayers('yycq','','hide','logo','','hide','ring','','hide','sub','','hide','mo','','hide','brand','','hide','feature','','hide','product','','hide','help','','hide')" 
            onmouseover="MM_showHideLayers('yycq','','hide','logo','','hide','ring','','hide','sub','','show','mo','','hide','brand','','hide','feature','','hide','product','','hide','help','','hide')">美食</a>&nbsp;&nbsp;&nbsp; <a href="#" class="tit">讨论</a></td>
    <td width="8%" background="<?php echo SITE_URL?>img/made/made_r3_c4.jpg" class="tit">我&nbsp;&nbsp;&nbsp; 搜： </td>
    <td width="6%" background="<?php echo SITE_URL?>img/made/made_r3_c4.jpg"><select name="menu1" class="textinfo" onchange="MM_jumpMenu('parent',this,0)">
      <option>景区</option>
      <option>美食</option>
      <option>店铺</option>
    </select></td>
    <td width="30%" background="<?php echo SITE_URL?>img/made/made_r3_c4.jpg"><input name="textfield32" type="text" class="textinfo_h" value="请输入关键字" size="40" /></td>
    <td width="6%" background="<?php echo SITE_URL?>img/made/made_r3_c4.jpg"><table width="47" height="31" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td align="center" background="<?php echo SITE_URL?>img/anniu/an_r13_c8.gif" class="login">搜</td>
        </tr>
    </table></td>
    <td width="1%" background="<?php echo SITE_URL?>img/made/made_r3_c4.jpg">&nbsp;</td>
    <td width="3%" align="right" background="<?php echo SITE_URL?>img/made/made_r3_c4.jpg"><img src="<?php echo SITE_URL?>img/made/made_r3_c22.jpg" width="15" height="57" /></td>
  </tr>
</table>
<table width="200" height="5" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td></td>
  </tr>
</table>

<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="247" align="center" valign="top"><table width="234" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="53" align="left" background="<?php echo SITE_URL?>img/photo/jq_photo_r1_c4.jpg">
        	<img src="<?php echo SITE_URL?>img/photo/jq_photo_r1_c3.jpg" width="3" height="44" />
        </td>
        <td width="125" align="center" background="<?php echo SITE_URL?>img/photo/jq_photo_r1_c4.jpg" class="indexdh">
       		<a href="<?php echo SITE_URL.'GalleryPhotos/create?type='.$type.'&id='.$typeid?>">我要发布照片</a>
       	</td>
        <td width="56" align="right" background="<?php echo SITE_URL?>img/photo/jq_photo_r1_c4.jpg">
        	<img src="<?php echo SITE_URL?>img/photo/jq_photo_r1_c6.jpg" width="5" height="44" />
        </td>
      </tr>
    </table>
      <table width="234" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="5"></td>
        </tr>
      </table>
      <table width="230" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><img src="<?php echo SITE_URL?>img/photo/jq_photo_r4_c2.jpg" width="230" height="7" /></td>
      </tr>
    </table>
      <table width="230" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td background="<?php echo SITE_URL?>img/photo/jq_photo_r6_c2.jpg"><table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td height="30" align="left" class="tit">相册名</td>
            </tr>
            <tr>
              <td align="left" class="word">
              <?php 
              	foreach ($allGallerys as $k => $v){
              		echo $v->getName().'('.$v->getPhotoNum().')、';
              	}
              ?>
        		</td>
            </tr>
          </table></td>
        </tr>
      </table>
      <table width="230" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/photo/jq_photo_r8_c2.jpg" width="230" height="6" /></td>
        </tr>
      </table>
      <table width="232" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="5"></td>
        </tr>
      </table>
      <table width="232" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/photo/jq_photo_r10_c2.jpg" width="232" height="8" /></td>
        </tr>
      </table>
      <table width="232" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td background="<?php echo SITE_URL?>img/photo/jq_photo_r11_c2.jpg"><table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td height="30" colspan="3" align="left" class="tit">上传排行</td>
            </tr>
            <tr>
              <td width="12%"><img src="<?php echo SITE_URL?>img/sz/1w.gif" width="15" height="15" /></td>
              <td width="42%" height="25" align="left" class="word">清风一叶 </td>
              <td width="46%" align="left" class="yh">22张</td>
            </tr>
            <tr>
              <td height="25" ><img src="<?php echo SITE_URL?>img/sz/2w.gif" width="15" height="15" /></td>
              <td align="left" class="word">&nbsp;</td>
              <td align="left" class="yh">&nbsp;</td>
            </tr>
            <tr>
              <td height="25" ><img src="<?php echo SITE_URL?>img/sz/3w.gif" width="15" height="15" /></td>
              <td align="left" class="word">&nbsp;</td>
              <td align="left" class="yh">&nbsp;</td>
            </tr>
            <tr>
              <td height="25" ><img src="<?php echo SITE_URL?>img/sz/4w.gif" width="15" height="15" /></td>
              <td align="left" class="word">&nbsp;</td>
              <td align="left" class="yh">&nbsp;</td>
            </tr>
            <tr>
              <td height="25" ><img src="<?php echo SITE_URL?>img/sz/5w.gif" width="15" height="15" /></td>
              <td align="left" class="word">&nbsp;</td>
              <td align="left" class="yh">&nbsp;</td>
            </tr>
            <tr>
              <td height="25" ><img src="<?php echo SITE_URL?>img/sz/6w.gif" width="15" height="15" /></td>
              <td align="left" class="word">&nbsp;</td>
              <td align="left" class="yh">&nbsp;</td>
            </tr>
            <tr>
              <td height="25" ><img src="<?php echo SITE_URL?>img/sz/7w.gif" width="15" height="15" /></td>
              <td align="left" class="word">&nbsp;</td>
              <td align="left" class="yh">&nbsp;</td>
            </tr>
            <tr>
              <td height="25" ><img src="<?php echo SITE_URL?>img/sz/8w.gif" width="15" height="15" /></td>
              <td align="left" class="word">&nbsp;</td>
              <td align="left" class="yh">&nbsp;</td>
            </tr>
            <tr>
              <td height="25" ><img src="<?php echo SITE_URL?>img/sz/9w.gif" width="15" height="15" /></td>
              <td align="left" class="word">&nbsp;</td>
              <td align="left" class="yh">&nbsp;</td>
            </tr>
            <tr>
              <td height="25" ><img src="<?php echo SITE_URL?>img/sz/10w.gif" width="15" height="15" /></td>
              <td align="left" class="word">&nbsp;</td>
              <td align="left" class="yh">&nbsp;</td>
            </tr>
          </table></td>
        </tr>
      </table>
      <table width="232" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/photo/jq_photo_r13_c2.jpg" width="232" height="8" /></td>
        </tr>
      </table>
      <table width="232" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="5"></td>
        </tr>
      </table>
      <table width="230" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/photo/jq_photo_r4_c2.jpg" width="230" height="7" /></td>
        </tr>
      </table>
      <table width="230" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td align="center" background="<?php echo SITE_URL?>img/photo/jq_photo_r6_c2.jpg">
		  <table width="90%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="30" align="left" class="tit">相册游客</td>
            </tr>
          </table>
		  <table width="90%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td><img src="<?php echo SITE_URL?>img/xianlu/made_r20_c6.jpg" width="38" height="38" class="img" /></td>
                    <td><img src="<?php echo SITE_URL?>img/xianlu/made_r20_c6.jpg" width="38" height="38" class="img" /></td>
                    <td><img src="<?php echo SITE_URL?>img/xianlu/made_r20_c6.jpg" width="38" height="38" class="img" /></td>
                    <td><img src="<?php echo SITE_URL?>img/xianlu/made_r20_c6.jpg" width="38" height="38" class="img" /></td>
                  </tr>
                  <tr>
                    <td height="25"><span class="word"><a href="#">用户名</a></span></td>
                    <td height="25" class="word"><a href="#" >用户名</a></td>
                    <td><span class="word"><a href="#">用户名</a></span></td>
                    <td><span class="word"><a href="#">用户名</a></span></td>
                  </tr>
            </table>
		  <table width="90%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td><img src="<?php echo SITE_URL?>img/xianlu/made_r20_c6.jpg" width="38" height="38" class="img" /></td>
              <td><img src="<?php echo SITE_URL?>img/xianlu/made_r20_c6.jpg" width="38" height="38" class="img" /></td>
              <td><img src="<?php echo SITE_URL?>img/xianlu/made_r20_c6.jpg" width="38" height="38" class="img" /></td>
              <td><img src="<?php echo SITE_URL?>img/xianlu/made_r20_c6.jpg" width="38" height="38" class="img" /></td>
            </tr>
            <tr>
              <td height="25"><span class="word"><a href="#">用户名</a></span></td>
              <td height="25" class="word"><a href="#" >用户名</a></td>
              <td><span class="word"><a href="#">用户名</a></span></td>
              <td><span class="word"><a href="#">用户名</a></span></td>
            </tr>
          </table></td>
        </tr>
      </table>
      <table width="230" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/photo/jq_photo_r8_c2.jpg" width="230" height="6" /></td>
        </tr>
      </table>
      <table width="232" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="5"></td>
        </tr>
      </table>
    </td>
    <td width="753" valign="top"><table width="746" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="32" background="<?php echo SITE_URL?>img/photo/jq_photo_r1_c13.jpg"><img src="<?php echo SITE_URL?>img/photo/jq_photo_r1_c11.jpg" width="8" height="44" /></td>
        <td width="703" background="<?php echo SITE_URL?>img/photo/jq_photo_r1_c13.jpg">
        	<p class="tit">本相册共计图片<span class="yh">
        	<?php
        	if($gallery){
        		echo $gallery->getPhotoNum();
        	}
        	?>
        	</span>张。（默认显示所有照片）</p>
        </td>
        <td width="11" align="right" background="<?php echo SITE_URL?>img/photo/jq_photo_r1_c13.jpg"><img src="<?php echo SITE_URL?>img/photo/jq_photo_r1_c15.jpg" width="8" height="44" /></td>
      </tr>
    </table>
      <table width="746" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td>&nbsp;</td>
        </tr>
      </table>
      <table width="746" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/photo/jq_photo_r3_c12.jpg" width="746" height="6" /></td>
        </tr>
      </table>
      <table width="746" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td align="center" background="<?php echo SITE_URL?>img/photo/jq_photo_r5_c12.jpg">
          <div>
          	<?php foreach ($photos->getResults() as $k => $v): ?>
          	<div style="float:left;width:150px;margin-left:30px;margin-top:25px;">
          		<p><?php echo $v->getName();?></p>
          		<?php $imgSize = getimagesize(SITE_URL.'uploads/'.$v->getSrc());?>
          		<img src="<?php 
          			echo SITE_URL.'uploads/'.$v->getSrc();
          		?>" 
          		<?php
          			if($imgSize['0'] > 150){
          				echo 'width="150"';
          			}
          			if($imgSize['1'] > 113){
          				echo 'height="113"';
          			}
          		?> style="margin-top:5px;">
          		<p style="margin-top:5px;">由<?php echo $userInfo['username']?>上传</p>
          		<p style="margin-top:5px;">共<?php echo $v->getVisitNum();?>人浏览，评论<?php echo $v->getCommentsNum();?>条</p>
          	</div>
          	<?php endforeach; ?>
          </div>
          </td>
        </tr>
      </table>
      <table width="90%" cellspacing="0" cellpadding="0" border="0">
		<tbody>
			<tr><td align="right">
				<span class="word">本页共显示<?php echo $gallery->getPhotoNum();?>张中的
				<?php 
					if($page*16 > $gallery->getPhotoNum()){
						echo (($page-1)*16+1).'-'.$gallery->getPhotoNum();
					}else{
						echo (($page-1)*16+1).'-'.($page*16);
					}
				?>张，</span>
				<span class="yh">
				<?php if( $photos->haveToPaginate() ): ?>
					<?php echo link_to('上页','/GalleryPhotos/index?type='.$type.'&typeid='.$typeid.'&id='.$id.'&page='.$photos->getPreviousPage()) ?>
			
					<?php foreach ( $photos->getLinks() as $page ): ?>
						<?php echo link_to_unless($page == $photos->getPage(),$page,'/GalleryPhotos/index?type='.$type.'&typeid='.$typeid.'&id='.$id.'&page='.$page) ?>
						<?php echo ($page != $photos->getCurrentMaxLink()) ? '-':'' ?>
					<?php endforeach; ?>
					<?php echo link_to('下页','/GalleryPhotos/index?type='.$type.'&typeid='.$typeid.'&id='.$id.'&page='.$photos->getNextPage()) ?>
				<?php endif; ?>
				</span>
			</td></tr>
		</tbody>
      </table>
      <table width="746" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/photo/jq_photo_r19_c12.jpg" width="746" height="5" /></td>
        </tr>
      </table></td>
  </tr>
</table>
</body>
</html>
